<% @tours.each do |tour| %>
    <article class='tour_package'>
        <header>
            <figure>
                <%= image_tag tour.primary_picture.url(:thumb) %>
                <% if tour.is_on_promoted == true %>
                    <span class="a">Hot</span>
                <% end %>
            </figure>
            <h2><%= link_to tour.tour_name_eng,"#" %></h2>
            <p><span class="rating-a a">0/5</span> ( 20 Ratting )</p>
        </header>
        <%= raw(truncate( tour.description_eng , :length => 150 ))  %>
        <% if tour.is_on_promoted == true %>
            <span class="a">Hot</span>
            <p class="scheme-e"><span>$</span><%= tour.usd_promotion_price %> <a href="./">Book</a></p>
        <% else %>
            <p class="scheme-e"><span>$</span><%= tour.usd_price %> <%= link_to "book", {controller: "pages", action: "tour_detail", tid: tour.id} %></p>
        <% end %>
        <p class="link-b"><a href="./">View Details</a></p>
        <footer>
            <p><%= tour.area.area %> - Hanoi, Vietnam</p>
        </footer>
    </article>
<% end %>   